//
//  DeviceMacro.h
//  MobileMedical
//
//  Created by unionx on 2017/5/12.
//  Copyright © 2017年 unionx. All rights reserved.
//
// 设备相关的
#ifndef DeviceMacro_h
#define DeviceMacro_h


#define KeyWindow [UIApplication sharedApplication].keyWindow

/** 获取App版本 */
#define kVersion    [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
/** 获取系统版本 */
#define kSyetemVersion [[UIDevice currentDevice] systemVersion]

// 型号
#define IS_IPHONE4      kScreenBoundHeight == 480
#define IS_IPHONE5      kScreenBoundHeight == 568
#define IS_IPHONE6      kScreenBoundHeight == 667
#define IS_IPHONE6P     kScreenBoundHeight == 736

#define kNavigationHeight ([UIApplication sharedApplication].statusBarFrame.size.height+44)
#define KTabBarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49)

#define UIRate                 kScreenBoundWidth/375.0

//屏幕分辨率比例
#define kScreenScale [UIScreen mainScreen].scale

#define kScreenFrameBound [UIScreen mainScreen].bounds
#define kScreenBoundWidth [UIScreen mainScreen].bounds.size.width
#define kScreenBoundHeight [UIScreen mainScreen].bounds.size.height

#define KeyWindow [UIApplication sharedApplication].keyWindow


#define kBGColor            [UIColor colorWithString:@"#ECECEC"]    //灰色背景
#define kNavigationColor    [UIColor colorWithString:@"#3E92D7"]    //Navigation背景
#define kTabBarColor        [UIColor colorWithString:@"#4273E1"]    //TabBar选中颜色
#define KVersion    [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]


#define kNavigationBackColor  [UIColor colorWithString:@"#4273E1"]//天蓝色
#define KDeepBlueColor     [UIColor colorWithString:@"#4694d1"]//深蓝色
#define kOrangeColor       [UIColor colorWithString:@"#f39800"]//橘色
#define kLigihtOrageColor  [UIColor colorWithString:@"#b0a79e"]//浅橘色
#define KSepLineColor      [UIColor colorWithString:@"#efefef"]//分割线颜色浅浅灰

#define kTextDeepDarkColor [UIColor colorWithString:@"#555555"]//深灰色
#define kTextMiddleDarkColor [UIColor colorWithString:@"#898989"]//中灰色
#define kTextLightDarkColor [UIColor colorWithString:@"#c9caca"]//浅灰色
#define kMutButtonSelectGrayColor [UIColor colorWithString:@"#DCDCDD"]//浅灰色


#define kTextBigSizeFont [UIFont systemFontOfSize:18]
#define kTextMiddleSizeFont [UIFont systemFontOfSize:14]
#define kTextMiddleExplainSizeFont [UIFont systemFontOfSize:11]
#define kTextSmallSizeFont [UIFont systemFontOfSize:8]


//各个默认图片
//弟子名录页默认头像
#define kDiZiMingLuDefaultImage [UIImage imageNamed:@"diziMingLuBg"]
//资源列表默认头像
#define kZiYuanListDefaultImage [UIImage imageNamed:@"ziyuanListBg"]
//医生详情页头部默认的头像
#define kDocDetailDefaultHeadImage [UIImage imageNamed:@"docDetailHeadDefaultBg"]

//我的患者列表的默认头像
#define kMyHuanZheListDefaultHeadImage [UIImage imageNamed:@"myHuanZheListHeadBg"]
//我的患者详情页默认头像
#define kMyHuanZheDetailDefaultHeadImage [UIImage imageNamed:@"myHuanZheDetailHeadBg"]
//我的服务详情页 之痧疗默认icon
#define kMyHuanZheShaDetailDefaultImage [UIImage imageNamed:@"myServerDetailShaBg"]
// 我的患者的报告详情之默认icon
#define kMyHuanZheReportDefaultImage [UIImage imageNamed:@"myHuanZheReportBg"]

//医案详情之辅助检查的默认icon yiAnFuZhuBg
#define kYiAnDetailFuZhuDefaultImage [UIImage imageNamed:@"Default_Life"]


#define weakself(self)      __weak typeof(self) weakself = self;


#pragma mark - 默认提示字
#define kDefaultServerErrorString               @"服务器异常，请稍后再试"
#define kDefaultNetWorkErrorString              @"网络连接异常"
#define kDefaultQuitErrorString                 @"您的账号已经在别处登录!"
#define kDefaultWebErrorString                  @"抱歉,此网页出现了问题"
#define kDefaultServerSucessString              @"查询成功！"






#endif /* DeviceMacro_h */
